package com.itheima.常用API;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;

public class ApiArrays {
    public static void main(String[] args) {
        int[] arr={12,11,10,9,8,7,6,5,4,3,2,1,0};
        System.out.println(Arrays.toString(arr));
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
        int resoult= Arrays.binarySearch(arr,122);
        System.out.println(resoult);
        System.arraycopy(arr,0,arr,0,5);
    }
}
